<template>
	<view class="file_list">
		<view class="file_item" v-for="(item,index) in uploadFileList" :key="index">
			<view class="left">
				<u-radio-group v-model="item.isSelect">
					<u-radio :customStyle="{marginBottom: '8px'}"> </u-radio>
				</u-radio-group>
			</view>
			<view class="right">
				<view class="top">
					<text>{{item.name}}</text>
					<text>{{item.time}}</text>
				</view>
				<view class="center">
					<view class="tag" v-for="(itm,idx) in item.tags" :key="idx">
						{{itm}}
					</view>
				</view>
				<view class="bottom">
					<text>{{item.price}}</text>
					<view class="status">
						<view class="status_item">
							<image src="https://mg-print.oss-cn-shenzhen.aliyuncs.com/img/Help.png" mode=""></image>
							<text>预览</text>
						</view>
						<view class="">
							<image src="https://mg-print.oss-cn-shenzhen.aliyuncs.com/img/Help.png" mode=""></image>
							<text>删除</text>
						</view>
						<view class="">
							<image src="https://mg-print.oss-cn-shenzhen.aliyuncs.com/img/Help.png" mode=""></image>
							<text>设置</text>
						</view>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		name: "uploadList",
		props: {
			uploadFileList: {
				default: [],
				typeof: Array
			},

		},
		data() {
			return {

			};
		}
	}
</script>

<style lang="scss" scoped>
	

	.file_list {
		image {
			width: 30rpx;
			height: 30rpx;
			margin-right: 10rpx;
		}
		display: flex;
		flex-direction: column;
		padding: 20rpx;
		background-color: #f5f6f7;
		margin-top: 20rpx;
		.file_item {
			margin-bottom: 20rpx;
			border-radius: 20rpx;
			background-color: #ffffff;
			.top {
				display: flex;
				justify-content: space-between;
				align-items: center;
				font-size: 26rpx;
			}

			.center {
				font-size: 26rpx;
				display: flex;
				margin: 10rpx 0;
				.tag {
					padding: 5rpx 20rpx;
					box-sizing: content-box;
					background-color: #f5f5f7;
					margin-right: 10rpx;
					border-radius: 50rpx;
				}
			}

			.bottom {
				display: flex;
				justify-content: space-between;
				align-items: center;

				.price {
					color: red;
				}

				.status {
					display: flex;
					align-content: center;
				}

				.status_item {
					display: flex;
					align-items: center;
					margin-right: 20rpx;
				}
			}

			display: flex;
			justify-content: space-around;
			align-items: center;
			padding: 20rpx;
		}

		.left {
			display: flex;
			align-items: center;
		}

		.right {
			display: flex;
			justify-content: space-between;
			flex-direction: column;
			flex: 1;
			margin-left: 20rpx;
		}
	}
</style>